import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);
const routes = [
    { path: '/', redirect: "/supplyChain" },
    { path: '/home',name:"homePage", component:()=> import('../pages/home/index.vue') },
    { path: '/supplyChain',name:"supplyChain", component:()=> import('../pages/supplyChain/index.vue') },
];

const router = new Router({
    mode: 'history', // 使用HTML5 History模式，需要后端正确配置URL回退
    routes // (缩写) 相当于 routes: routes
});
export default router;